package com.it.myd.help;

public class StringHelper {

    public static String replaceNull(String from) {
        return (from == null || "".equals(from)) ? "" : from;
    }

    public static boolean isNull(String str){
        if(str == null || "".equals(str.trim())){
            return true;
        }else{
            return false;
        }
    }

    public static boolean isNotNull(String str){
       return !isNull(str);
    }

}
